home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
comms
/
dialers.arj
/
CS3820.T
< prev
next >
Wrap
Text File
|
1993-12-25
|
3KB
|
94 lines
:: cs3820.t AT&T Paradyne Comsphere 3820
dialnum
pat; pat 9l OK
put "ATE1S0=0\r"; wait -f2
if "!9" gosub waketb :: get modem to respond
put "AT&F&D2&C1V1X6S0=0S7=45&T5\045C0\\N1\\Q0\r"
wait -f2
put "AT"
if js2,a_mnp put "\\N5\\Q3"
else if js2,mnp put "\\N4\\Q3"
if js2,_s put "\\Q1 "
if js2,v22 put "S41=7 "
if is5,300 put "S41=11"
if is5,1200 put "S41=8"
if is5,2400 put "S41=6"
if is5,4800 put "S41=5"
if is5,9600 put "S41=3"
if dp ss s2 "(c:)(.*)"; if %z2 put "%z2 " :: for extra commands
if "%s3>8" put "S7=70" : longer wait if long distance
put "Q0S10=10V1\r"; wait -f2
:::if %s1 if !Js1,s handshake slow; lput "Handshake SLOW: "
if %alds if ps3,0 putw "ATS8=10\r"
put "%mprefix"; put "%s3%alds"; dis -Q
if js2,man put ";\r"; echo "Hit F1 when Tone is heard"; t; put "ATD"
put "\r"; dis -t
if "js3,;" accept s1 "Lift Telephone Receiver, Hit ENTER"; o; return
pat 1 "CONNECT\r"; pat 2l "NO CARRIER"; pat 3l "BUSY"; pat 4 RING;
pat 5l "ECT 1200"; pat 6l "ECT 2400"
pat 8l "NO DIALTONE"; pat 10l "CONNECT 300"
pat 11l "CONNECT 9600"; pat 12l "CONNECT 19200"
pat 13l "VOICE"; pat 14l "NO ANS"; pat 15l "CONNECT 4800"
pat 16l "ECT 7200"; pat 17l "ECT 12000"; pat 18l "ECT 14400"
pat 19l "ECT 16800"; pat 20l "ECT 19200"; pat 21l "ECT 38400"
pat 22i "ERROR"
wait -f72
while "4&&!L>3" wait -f40 :: wait for a few rings only
sets s8 %y2
if "n||8||9||2||3||4||13||14|22" goto sorry
dis -d
if dd while "!c&&L<20" sleep 1 : For modems with slow carrier det
:: if dp estimate 0 300; if "hCONNECT" ss y "[0-9]+"; estimate 0 z0
if "hCONNECT" ss y "[0-9]+"; estimate 0 z0
if "hCARRIER" ss y "[0-9]+"; estimate 0 z0
if !%s1 goto ns1
if !Js1,s handshake slow; lput "Handshake SLOW: "
echo "Speed Locked"; goto mm2end
ns1: if "h/EC" echo "MNP Connected"; handshake both; goto mm2end
if "hV42" echo "V.42 Connected"; handshake both; goto mm2end
if "hMNP" echo "MNP Connected"; handshake both; goto mm2end
if js2,mnp set s2 ""
arq: if "1||10" if is5,450 sp 450; echo "450 bps"; goto mm2end
if "1||10" sp 300 goto mm2end
if 5 sp 1200 goto mm2end
if 6 sp 2400 goto mm2end
if 15 sp 4800; goto mm2end
if 11 sp 9600; goto mm2end
if "12" sp 19200; goto mm2end
if "18" sp 19200; goto mm2end
if "19" sp 19200; goto mm2end
if "20" sp 19200; goto mm2end
echo "Unknows Connect Message!!"
return
sorry: echo "No Connect Message Detected."
return
mm2end: set s9 "y"
return
call2 bye; sp 38400
gosub waketb; pat 1 OK
put "ATH0 M0 S0=1 \\N5 \\Q3\r"; wait -f2
handshake on
return
call1 bye; bye; sp 38400; handshake off; gosub waketb; putw ATM0H1\r"
return
: initializes the NVRAM
: "call init,aa" for Unix or VMS dial-in (NOT YAM HOST OPERATION!!)
: "call init,cela" for answering cellular calls
: "call init,aa,cela" for Unix/VMS answering cellular calls
initmodem
echo "Initializing AT&T Paradyne 3820"
speed 38400 :: must agree with the entry in Unix /etc/inittab
pat; pat 1 "OK"
putw "ATE1Q0\r"
if js0,cela echo "Setting Cellular"; put "AT&F6\r"; wait -f2
else put "AT&F\\N5\r"; wait -f2
if js0,aa echo "Unix Autoanswer"; put "AT &D2 &C1 V1 X6 S0=5 &T5 \\Q3 Q2 E0\r"
else put "AT&D2&C1V1X6S0=0&T5\\N1\\Q0\r"
wait -f2
put "AT&D2&C1&W\r"; wait -f2
return